#pragma once
#include "WareArithmetic.h"
#include "CEffectUnitProp.h"

BEGIN_WARE

VBOOL CEffectUnitProp::LoadProp( CWareFileRead& File )
{
	LoadMapValue( m_mapOffset, File );
	LoadMapString( m_mapTextureFileName, File );
	LoadMapValue( m_mapSize, File );
	LoadMapValue( m_mapColor, File );
	LoadMapValue( m_mapAlpha, File );

	return VTRUE;
}

void CEffectUnitProp::SaveProp( CWareFileWrite& File )
{
	SaveMapValue( m_mapOffset, File );
	SaveMapString( m_mapTextureFileName, File );
	SaveMapValue( m_mapSize, File );
	SaveMapValue( m_mapColor, File );
	SaveMapValue( m_mapAlpha, File );
}

int32 CEffectUnitProp::SetProp( vector< EffectProp* >& PropList )
{
	return 0;
}

void CEffectUnitProp::GetProp( vector< EffectProp* >& PropList )
{		
}

uint32 CEffectUnitProp::GetAdvanceProp( OffsetMap& Offset, NameMap& Texture,SizeMap& Size, ColorMap& Color, AlphaMap& Alpha )
{
	Offset = m_mapOffset;
	Texture = m_mapTextureFileName;
	Size = m_mapSize;
	Color = m_mapColor;
	Alpha = m_mapAlpha;

	return 0;	
}

void CEffectUnitProp::SetAdvanceProp( OffsetMap& Offset, NameMap& Texture,SizeMap& Size, ColorMap& Color, AlphaMap& Alpha )
{
	m_mapOffset = Offset;
	m_mapSize = Size;
	m_mapColor = Color;
	m_mapAlpha = Alpha;
	m_mapTextureFileName = Texture;	
}

END_WARE